Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODWindowState


CreateMenuBar

Document Shell

The CreateMenuBar method creates and initializes a menu bar object.

ODMenuBar CreateMenuBar (in ODPlatformMenuBar menuBar);
menuBar
A 32-bit value identifying a menu bar. On the Mac OS platform, this parameter is a handle (type Handle).
return value
A reference to the newly created menu bar object.
DISCUSSION
The document shell calls this method. Your part typically calls this window-state object's CopyBaseMenuBar method instead of this method.

This method initializes the reference count of the returned menu bar. When the caller has finished using that menu bar, it should call the menu bar's Release method.

SEE ALSO
The ODWindowState::CopyBaseMenuBar method (page 855).
The ODMenuBar class (page 394).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help